#!/bin/sh

[ ! -e /tmp/mpvd ] && ( mkfifo /tmp/mpvd || exit 1 )
[ ! -e /tmp/dzen ] && ( mkfifo /tmp/dzen || exit 1 )

mpvd_dzen.sh &
make && (./mpvd <>/tmp/mpvd 2>/tmp/mpvd_stderr | tee -a /tmp/mpvd_history 1<>/tmp/dzen &)
